package surname.protocol;


/**
 * Add surname request class. This object can be sent to the server with the
 * new surname of a specific name
 * This class is serializable and can be sent through the network.
 *
 * @author Thomas Di'Meco / Laura Martellotto - Gwenn Aubert / Matthieu Maugard - SI4 Groupe 1
 */
public class AddSurnameRequest extends AbstractRequest
{
    private static final long serialVersionUID = 1L;

    private String name;
    private String surname;

    /**
     * Create an empty add surname request
     */
    public AddSurnameRequest ()
    {
        super();
        this.name = "";
        this.surname = "";
    }

    /**
     * Create an add surname request with name and surname
     * @param name The name
     * @param surname The surname
     */
    public AddSurnameRequest (String name, String surname)
    {
        super();
        this.name = name;
        this.surname = surname;
    }

    /**
     * @return The name
     */
    public String getName ()
    {
        return name;
    }

    /**
     * @param name The new name
     */
    public void setName (String name)
    {
        this.name = name;
    }

    /**
     * @return The surname
     */
    public String getSurname ()
    {
        return surname;
    }

    /**
     * @param surname The new surname
     */
    public void setSurname (String surname)
    {
        this.surname = surname;
    }
}
